<?php

namespace App\Models\CarModels;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\App;

class CarComponent extends Model
{
    /**
     *
     */

    protected $table = 'car_components';
    protected $fillable = ['kind_id','detail','desc'];


    public function kind()
    {
        return $this->belongsTo(CarKind::class,'kind_id','id');
    }
    public function info()
    {
        return $this->hasMany(CarInfo::class,'kinds_id');
    }

}
